package com.anhua.demo.config;

import com.anhua.demo.pojo.Home;
import com.anhua.demo.pojo.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;

@Configuration
@ComponentScan("com.anhua.demo.pojo")
public class Hh {

@Bean
    public Student mystudent(){
    return new Student();
}
    @Bean
    public Home myhome(){
        return new Home();
    }

}
